package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.pojo.core.dto.ChargeRecordDto;
import com.zhentao.service.ChargeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/auth/core")
public class ChargeRecordController {
    @Autowired
    private ChargeRecordService chargeRecordService;

    /**
     * @description   我的充电订单列表展示
     * @author 大毅
     * @param
     * @return com.zhentao.model.common.dtos.ResponseResult
     */
    @PostMapping("/charge/list")
    public ResponseResult getChargeRecordList(@RequestBody ChargeRecordDto chargeRecordDto) {
        return chargeRecordService.getChargeRecordList(chargeRecordDto.getPayStatus());
    }
}
